/*jslint browser: true, newcap:true, devel: true, bitwise: true, white: true, plusplus: true */
/*global $:true, define:true */

/**
 * @module Core
 */

define(['WID/Core/Class'], function(Class) {
"use strict";

/** 
 * @class App
 * @constructor
 */
function App(config,mainView) {
	this.Name = config.name;
	this.Version = config.version;
	this.LogLevel = config.logLevel;
	this.Debug = Boolean(config.debug);
	this.MainView = mainView;
}

return Class(App,{
	methods: {
		constructor: App,
		
		init: function() {
			this.MainView.init();
		},
		
		destroy: function() {	
			this.MainView.dispose();
		}
	}
});

});
